import {RouteRecordRaw} from 'vue-router'
export const routes:Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '_home',
    component: () => import('../views/layout/layout.vue'),
    redirect: '/home',
    meta: { title: '主页',menuType: 1},
    children: [
      {
        path: "/home",
        name: "Home",
        meta: { title: '数据统计',menuType: 2,icon:'icon-tongji',keepAlive:true,parentMenuList: [{ name: '_home', title: '首页' }]},
        component: () => import('../views/home/home.vue'),
      },{
        path: "/user",
        name: "User",
        meta: { title: '用户管理',menuType: 2,icon:'icon-renzhengyonghu',keepAlive:true,parentMenuList: [{ name: '_user', title: '用户' }]},
        component: () => import('../views/user/user.vue'),
      }
    ]
  },{
      path: '/login',
      name: 'Login',
      component: () => import('../views/login/login.vue'),
      meta: {
        title: '登录',
        hideInMenu: true,
      }
  },{
    path: '/404',
    name: '404',
    meta: { title: '404错误' },
    component: () => import('../views/404/404.vue')
  }
]